com.prosc.supercontainer.plugin
Class IOExceptionWithHttpCode

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by com.prosc.supercontainer.plugin.IOExceptionWithHttpCode
All Implemented Interfaces:
java.io.Serializable

public class IOExceptionWithHttpCode
extends java.io.IOException

Exception which is typically generated when the SuperContainer server responds with an HTTP error code.

See Also:
Serialized Form

Constructor Summary
IOExceptionWithHttpCode(java.lang.String s, int statusCode)
          Constructs a new IOExceptionWithHttpCode
 
Method Summary
 int getStatusCode()
          The HTTP error code returned from the server.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IOExceptionWithHttpCode

public IOExceptionWithHttpCode(java.lang.String s,
                               int statusCode)
Constructs a new IOExceptionWithHttpCode

Parameters:
s - the human-readable message
statusCode - the HTTP error code
Method Detail

getStatusCode

public int getStatusCode()
The HTTP error code returned from the server.

Returns:
The HTTP error code returned from the server